
export class Singleton
{
    public static GetInstance<T>(this: new() => T): T
    {
        if ((<any>this)._inst == null)
        {
            (<any>this)._inst = new this();
        }

        return (<any>this)._inst;
    }
}
